package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetmealService {
    //增加套餐
    void add(Setmeal setmeal, Integer[] checkgroupIds);

    //分页查询
    PageResult findPage(QueryPageBean queryPageBean);

    //根据ID查询套餐
   Setmeal findById(Integer id);

    List<Setmeal> getSetmeal();

    void edit(Setmeal setmeal, Integer[] checkgroupIds);

    List<Integer> findCheckGroupIdsBySetmealId(Integer id);

    void deleteById(Integer id);


    List<Map<String, Object>> findSetmealCount();
}
